package com.i2works.smartluolong.web.dal.flow.dao;

import com.i2works.smartluolong.utils.basecommon.BaseCommonDAO;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.web.entity.flow.FlowInfoDO;
import com.i2works.smartluolong.web.entity.flow.FlowInfoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Liu Yapeng
 * @date 2018-14-110 14:37:02
 */
@Mapper
@Repository("flowInfoDAO")
public interface IFlowInfoDAO extends BaseCommonDAO<FlowInfoQuery,FlowInfoDO>{

    /**
     * 根据item_id和item_name查询更新
     */
	void updateByItem(FlowInfoDO flowInfoDO) throws DAOException;

    /**
     * 获取监控报表事项办理列表
     */
    List<FlowInfoDO> queryListByMonitor(FlowInfoQuery query) throws DAOException;


    /**
     * 事项办理报表
     */
    List<FlowInfoDO> queryItemReport(FlowInfoQuery query) throws DAOException;
}
